<template>
	<view class=" bg-white padding min-height-100">
		<FollowList ref="RefData" @clickItem="clickItem" />
	</view>
</template>

<script>
	import FollowList from "./components/FollowList.vue"
	export default {
		components: {
			FollowList
		},
		data() {
			return {
				searchObj: {
					pageNum: 1,
					pageSize: 10,
					userId: this.$store.state.user.userInfo.userId
				},
			}
		},
		onPullDownRefresh() {
			this.getDatas(this.$ListLoadEnum.load)
		},
		onReachBottom() {
			this.getDatas(this.$ListLoadEnum.bottom)
		},
		onLoad() {},
		onShow() {
			this.$nextTick(() => {
				this.getDatas(this.$ListLoadEnum.load)
			})
		},
		methods: {
			getDatas(type) {
				this.$refs.RefData.loadDatas(type, this.searchObj)
			},
			clickItem(e) {
				this.$jump({
					to: "/pages/event/event/detail",
					query: {
						id: e.eventId
					}
				})
			},
		},
	}
</script>

<style lang="less" scoped>
</style>